package com.san.hkhospital.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.san.hkhospital.mapper.OutpatientMapper;
import com.san.hkhospital.entity.OutpatientExample;
import com.san.hkhospital.entity.Outpatient;
import com.san.hkhospital.service.OutpatientService;
/**
 * ClassName:OutpatientServiceImpl
 * PackageName:com.san.hkhospital.service.impl
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/13 14:38
 * 
 */
 
 
@Service
public class OutpatientServiceImpl implements OutpatientService{

    @Resource
    private OutpatientMapper outpatientMapper;

    @Override
    public long countByExample(OutpatientExample example) {
        return outpatientMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(OutpatientExample example) {
        return outpatientMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer opId) {
        return outpatientMapper.deleteByPrimaryKey(opId);
    }

    @Override
    public int insert(Outpatient record) {
        return outpatientMapper.insert(record);
    }

    @Override
    public int insertSelective(Outpatient record) {
        return outpatientMapper.insertSelective(record);
    }

    @Override
    public List<Outpatient> selectByExample(OutpatientExample example) {
        return outpatientMapper.selectByExample(example);
    }

    @Override
    public Outpatient selectByPrimaryKey(Integer opId) {
        return outpatientMapper.selectByPrimaryKey(opId);
    }

    @Override
    public int updateByExampleSelective(Outpatient record,OutpatientExample example) {
        return outpatientMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(Outpatient record,OutpatientExample example) {
        return outpatientMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(Outpatient record) {
        return outpatientMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Outpatient record) {
        return outpatientMapper.updateByPrimaryKey(record);
    }

}
